package il.ac.braude.sona.constants;



/**
 * the protocol used between client and server
 * @author Ofek Ron
 * @author Avihay Avitan
 * @author Nitzan Inbar
 * @author Sasha Rozenthal 
 */
public class P {
	public static final String login = "login";
	public static final String values = "values";
	public static final String usersNameByTid = "users by tid";
	public static final String systemWorker = "system applied worker";
	public static final String workerlist = "workers list";
	public static final String AppointReqWorkers = "appoint request workers";
	public static final String AppointTester = "appoint tester";
	public static final String error = "error";
	public static final String view = "view";
	public static final String create = "create";
	public static final String files = "files";
	public static final String ok = "ok";
	public static final String server_mssg = "server_mssg";

	public static final String SupAction = "Supervisor Action";
	public static final String P_Report = "periodic report";
	public static final String E_Report = "Extensions report";
	public static final String D_Report = "Delays report";
	public static final String EstimateSurveyorTime = "Estimate surveyor stage time";
	public static final String EstimateExecutionTime = "Estimate execution leader stage time";
	public static final String GetEstimateApprove = "Get estimate timeline to approve";
	public static String extension = "extension list";
	public static String ExtensionDecision = "Extension Decision";
	public static String UpdateComplete = "Request status has been updated";
	public static String getReports = "get periodic reports";
	public static final String RequestExtension = "Request extension";
	

	public static final String ApproveExecutionTime = "Approve Execution time";
	public static final String ApproveSurveyorTime = "Approve Surveyor time";
	public static final String GetButtonPermissions = "Get Buttons Permissions";
	public static final String createSurveyReport="Create Survey Report";
	public static final String AddAdditionalData = "Add additional data";
	public static final String GetBoardDesision = "Get board decision";
	public static final String checkForFailurs="Check for failurs";
	public static final String fieldsError = "All fields are requiered ! ";
	

	/**
	 * the protocol used between client and server for view data
	 * @author Ofek Ron
	 * @author Avihay Avitan
	 * @author Nitzan Inbar
	 * @author Sasha Rozenthal 
	 */
	public static class ViewMssg extends Mssg {
		public static final String view_change_request_by_id = "change req by id";
		public static final String view_file_by_rid_and_name = "view_file";
		public static final String view_all_pending="view_all_pending";
		public static final String view_survey_report_fo_rid="surveyor report by rid";
		public static final String view_all_mssgs = "view_all_mssgs";
		public static final String  viewChangeRequestForMsg= "view change request";
		private  String whatToView = "what";
		private  String whereClause = "where";
		public static final String view_all_requests = "view all requests";
		
		public static final String P_report = "periodic report";
		public static final String D_report = "delays report";
		public static final String E_report = "Extensions report";
		/**
		 * 
		 * @param what - what to view
		 * @param where - value for where clause (i.e some user id)
		 */
		public ViewMssg(String what,String where) {
			super(view);
			init(what, where);
		}
		private void init(String what,String where) {
			whatToView=what;
			whereClause=where;
		}
		public ViewMssg(String what,String where, Object item) {
			super(view);
			init(what, where);
			setMessege(item);
		}
		public String getWhat() {
			return whatToView;
		}
		public String getWhere() {
			return whereClause;
		}
		
	}




	



	
	

	
	

}
